﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FPTPages.BetPage
{
    public partial class BetPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(Convert.ToString(Session["idlogin"])))
            {
                Response.Redirect("LoginPage.aspx");
            }
            LINQDataBaseDataContext db = new LINQDataBaseDataContext();
            int iduser = Convert.ToInt32(Session["idlogin"]);
            Procedure_getUserInfoResult user = db.Procedure_getUserInfo(iduser).FirstOrDefault();
            if (user != null)
            {
                UserInfo.Text = ("Chào Bạn ") + user.UserName + ", Số điểm hiện có: " + user.Point.ToString();
            }

        }

        protected void btBetTS_Click(object sender, EventArgs e)
        {


        }
    }
}